package com.welkin.cloudtest.orderS;

import org.springframework.cloud.client.loadbalancer.LoadBalanced;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.web.client.RestTemplate;

/**
 * TODO:请描述本类的作用
 * @version 1.0
 * @update 【1】【2021/3/4 17:47】【welkin】【创建】
 */
@Configuration
public class AppConfig {
    @Bean
    @LoadBalanced
    //LoadBalanced 根据应用名去查找ip
    public RestTemplate restTemplate() {
        return new RestTemplate();
    }
}
